package com.hq.ims.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * jiang bai ping
 *
 * @Email 526666031@qq.com
 * @Detail app首页banner
 */
@Alias("AppBanner")
@TableName(value = "app_banner")
@ApiModel(value = "AppBanner")
@Data
public class AppBanner extends BaseModel<AppBanner> implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "`app_banner_id`", type = IdType.ASSIGN_UUID)
    private String appBannerId;

    @ApiModelProperty(value = "banner类型id")
    @TableField(value = "`banner_type_id`")
    private String bannerTypeId;

    @ApiModelProperty(value = "轮播图url")
    @TableField(value = "`img_url`")
    private String imgUrl;

    @ApiModelProperty(value = "排序")
    @TableField(value = "`sort_num`")
    private Integer sortNum;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "`is_del`")
    private Boolean isDel;

    @ApiModelProperty(value = "数据版本号")
    @TableField(value = "`version`")
    private Integer version;

    @ApiModelProperty(value = "创建用户ID")
    @TableField(value = "`create_user_id`", fill = FieldFill.INSERT)
    private String createUserId;

    @ApiModelProperty(value = "创建用户名称")
    @TableField(value = "`create_user_name`", fill = FieldFill.INSERT)
    private String createUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "`create_date_time`", fill = FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateTime;

    @ApiModelProperty(value = "更新用户ID")
    @TableField(value = "`update_user_id`", fill = FieldFill.INSERT_UPDATE)
    private String updateUserId;

    @ApiModelProperty(value = "更新用户ID")
    @TableField(value = "`update_user_name`", fill = FieldFill.INSERT_UPDATE)
    private String updateUserName;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "`update_date_time`", fill = FieldFill.INSERT_UPDATE)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDateTime;

}
